package com.yayako.modules.department.mapper;

import com.yayako.modules.department.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DepartmentMapper {
  int deleteByPrimaryKey(String id);

  int insert(Department record);

  Department selectByPrimaryKey(String id);

  int updateByPrimaryKey(Department record);

  List<Department> getData();

  Department getDeptByName(String name);
}
